package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.atguigu.gulimall.product.vo.webvo.CategoryLevel2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author durunwu
 * @email 172885308@qq.com
 * @date 2023-02-07 00:03:47
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryListToTree();

    void removeMenusByIds(List<Long> asList);

    //查出catelogId完整路径
    Long[] findCatelogPath(Long catelogId);

    void updateCasca(CategoryEntity category);

    List<CategoryEntity> getCategory1Level();

    Map<String, List<CategoryLevel2Vo>> getCatelogJson();

}

